package com.learn.domain;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import java.util.Date;

/**
 * Created by Administrator on 2015/4/7.
 */
@Entity
public class Risk extends BaseObject {
    public Risk() {

    }

    public Risk(String riskType, String riskContent, User author, Date createTime, Date establishTime, boolean isEstablish) {

        this.riskType = riskType;
        this.riskContent = riskContent;
        this.author = author;
        this.createTime = createTime;
        this.establishTime = establishTime;
        this.isEstablish = isEstablish;
    }

    public String riskType;
    public String riskContent;

    @ManyToOne
    public User author;
    public Date createTime;
    public Date establishTime;
    public int possibility;
    public int dangerousness;

    public int getPossibility() {
        return possibility;
    }

    public void setPossibility(int possibility) {
        this.possibility = possibility;
    }

    public int getDangerousness() {
        return dangerousness;
    }

    public void setDangerousness(int dangerousness) {
        this.dangerousness = dangerousness;
    }


    public boolean isEstablish() {
        return isEstablish;
    }

    public void setIsEstablish(boolean isEstablish) {
        this.isEstablish = isEstablish;
    }

    public boolean isEstablish;

    public Date getEstablishTime() {
        return establishTime;
    }

    public void setEstablishTime(Date establishTime) {
        this.establishTime = establishTime;
    }


    public String getRiskType() {
        return riskType;
    }

    public void setRiskType(String riskType) {
        this.riskType = riskType;
    }

    public String getRiskContent() {
        return riskContent;
    }

    public void setRiskContent(String riskContent) {
        this.riskContent = riskContent;
    }

    public User getAuthor() {
        return author;
    }

    public void setAuthor(User author) {
        this.author = author;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }


}
